# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pylint
pkgver=2.5.3
pkgrel=0
pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
options="!check" # 1 test test_by_module_statement_value fails
url="https://github.com/PyCQA/pylint"
arch="noarch"
license="GPL-2.0-or-later"
depends="
	py3-astroid
	py3-isort
	py3-mccabe
	py3-setuptools
	py3-toml
	"
checkdepends="
	mpdecimal
	py3-pytest
	py3-pytest-runner
	"
source="https://files.pythonhosted.org/packages/source/p/pylint/pylint-$pkgver.tar.gz"
builddir="$srcdir"/pylint-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="03fcd893d361b66794f17433e90df108099fee2eccb35507c7f61befb8db846f0242e5ce2b4ee63727c9cc780a376c3b93d5af3186f884a4fdaad68b224ed7d2  pylint-2.5.3.tar.gz"
